﻿<?xml version="1.0" encoding="utf-8" ?>

<SiteConfigurations xmlns="http://tempuri.org/siteconfigurator.xsd">

  <SiteConfiguration Name="SITEDEFINITIONEXAMPLE#0">
    <RegionalSetting  Name="LocaleId" Value="1044" />
    <RegionalSetting  Name="TimeZoneId" Value="4" />
    <RegionalSetting  Name="CalendarType" Value="1" />
    <RegionalSetting  Name="ShowWeeks" Value="true" />
    <RegionalSetting  Name="Time24" Value="true" />
    <RegionalSetting  Name="Collation" Value="9" />
    <RegionalSetting  Name="FirstDayOfWeek" Value="1" />
    <RegionalSetting  Name="FirstWeekOfYear" Value="2" />
    <RegionalSetting  Name="WorkDays" Value="62" />
    <RegionalSetting  Name="WorkDayStartHour" Value="480" />
    <RegionalSetting  Name="WorkDayEndHour" Value="1020" />
    <ApplyTheme Id="Simple"/>
    <ApplyTheme2010 Id="SomeThemeID" />
    <FileToProvision FileName="default.aspx" NavBarHome="True" Folder="SitePages"/>
    <WebProperty Name="MasterUrl" Value="someurl" />
    <WebProperty Name="AlternateCssUrl" Value="someurl" />
    <WebProperty Name="SiteLogoUrl" Value="someurl" />
    <WebProperty Name="TreeViewEnabled" Value="True" />
    <WebProperty Name="QuickLaunchEnabled" Value="True" />
    <WebProperty Name="RequestAccessEmail" Value="some@mail.com" />
    
    <AvailableWebTemplates TemplateList="STS#0;STS#1;STS#2;MPS#0;MPS#1;MPS#2;MPS#4;" />
    <TopNavigationLink Title="Home" Link="default.aspx" IsExternal="false" />
    <TopNavigationLink Title="SomeLink" Link="default2.aspx" IsExternal="false" />

    <TopNavigationToDelete Title="SomeTitle" Link="/sites/anotherlink/" />
    <TopNavigationToDelete Title="SomeTitle2" Link="/sites/anotherlink/" />

    <RoleInheritance Value="breakcopy" />
    <!-- This will create the default usergroups on the site; owners, members, visitors -->
    <SetSiteCollectionAdministrators Users="contoso\admin" AllowWebConfigOverride="true" />
    <DefaultAssociatedGroups userlogin="SiteCollectionAdministrator" userlogin2="SiteCollectionAdministrator" groupNameSeed="" />
    <!-- Update sitecollectiongroup-->
    <!--Add users to the specifed group. Use "SiteCollectionAdministrators" for adding to the sitecollection admin group. -->
    <AddUserToGroup GroupName="SiteCollectionAdministrators" Users="contoso\administrators" />
    <AddUserToGroup GroupName="Owners" Users="contoso\administrators" />

    <!-- It is possible to use null, siteowner, sitegroup or sitecollectionadministrator instead of usernames -->
    <SiteGroup Name="NameOfTheSiteGroupToCreate" Role="MyPermissionLevelName" Owner="DOMAIN\OWNER" DefaultUser="DOMAIN\USER" AddSiteTitleToNames="True" RenameGroupTo="ANewName" AllowMembersEditMembership="False"  OnlyAllowMembersViewMembership="false"/>
    <SiteGroup Name="NameOfTheSiteGroupToCreate2" Role="MyPermissionLevelName" Owner="DOMAIN\OWNER" DefaultUser="DOMAIN\USER" AddSiteTitleToNames="True" AllowMembersEditMembership="False"/>

    <DeleteQuickLaunchHeading Title="TitleToDelete" />
    <DeleteExplicitTopNavigationLinks Link="LinkToDelete" />
    <DeleteQuickLaunchLinks />
    <QuickLaunchHeading Title="CustomHeader1" Link="/Lists/Test List/AllItems.aspx" IsExternal="false" />
    <QuickLaunchHeading Title="CustomHeader2" Link="/Lists/Test List/AllItems.aspx" IsExternal="false" />
    <QuickLaunchLink Title="SomeLink1" Heading="CustomHeader1" Link="/Lists/Test List/AllItems.aspx" IsExternal="false" />
    <QuickLaunchLink Title="SomeLink2" Heading="CustomHeader2" Link="/Lists/Test List/AllItems.aspx" IsExternal="false" />
    <PropertyBag Name="Property1" Value="SomeValue" AllowWebConfigOverride="false"/>
    <PropertyBag Name="Property2" Value="1" AllowWebConfigOverride="true"/>
    <!-- **************** Site Collection Features ************* -->
    <!-- BasicWebParts Feature -->
    <SiteCollectionFeature Guid="00BFEA71-1C5E-4A24-B310-BA51C3EB7A57" />
    <!-- Three-state Workflow Feature -->
    <SiteCollectionFeature Guid="FDE5D850-671E-4143-950A-87B473922DC7"  />


    <!-- **************** Web Features ************* -->
    <!-- TeamCollab Feature -->
    <WebFeature Guid="00BFEA71-4EA5-48D4-A4AD-7EA5C011ABE5" />
    <!-- MobilityRedirect -->
    <WebFeature Guid="F41CC668-37E5-4743-B4A8-74D1DB3FD8A4"  />
    <!-- WikiPageHomePage Feature -->
    <!-- WebFeature Guid="00BFEA71-D8FE-4FEC-8DAD-01C19A6E4053" / -->


    <TopNavigationLink Title="Home" Link="Default.aspx" IsExternal="false" />

    <ListInstance Title="Documents" Type="Document Library" Description="Library for team documents." EnableAttachments="false"  />
    <ListInstance Title="Announcements" Type="Announcements" Description="Team announcements."  />
    <ListInstance Title="Calendar" Type="Calendar" Description="Team calendar."  />
    <ListInstance Title="Discussions" Type="Discussion Board" Description="Team discussions."  />
    <ListInstance Title="Links" Type="Links" Description="Team links."  />
    <ListInstance Title="Tasks" Type="Tasks" Description="Team tasks."  />

    <ListViewWebPart FileName="Default.aspx"
      Title="Team announcements"
      ListName="Announcements"
      ViewName=""
      ZoneID="Body"
      ZoneIndex="1"
      ToolbarType="Summary Toolbar"
      AllowMinimize="false"
      AllowClose="false"
      AllowHide="false"
      AllowZoneChange="false"
      AllowConnect="false"
      AllowEdit="false"
        />

    <ListViewWebPart FileName="Default.aspx"
      Title="Team events"
      ListName="Calendar"
      ViewName="Current Events"
      ZoneID="Body"
      ZoneIndex="2"
      ToolbarType="FullToolbar"
      AllowMinimize="false"
      AllowClose="false"
      AllowHide="false"
      AllowZoneChange="false"
      AllowConnect="false"
      AllowEdit="true"
        />
    <ListViewWebPart FileName="Default.aspx"
      Title="Team documents"
      ListName="Documents"
      ViewName="All Documents"
      ZoneID="Body"
      ZoneIndex="3"
      ToolbarType="NoToolbar"
      AllowMinimize="false"
      AllowClose="false"
      AllowHide="false"
      AllowZoneChange="false"
      AllowConnect="false"
      AllowEdit="true"
        />
    <ListViewWebPart FileName="Default.aspx"
      Title="Team links"
      ListName="Links"
      ViewName=""
      ZoneID="Body"
      ZoneIndex="4"
      ToolbarType="Summary Toolbar"
      AllowMinimize="false"
      AllowClose="false"
      AllowHide="false"
      AllowZoneChange="false"
      AllowConnect="false"
      AllowEdit="false"
        />


    <!-- Add CData in this format:
    <AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1" FileName="default.aspx">
       <![CDATA[<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
        <Title>Site Users</Title>
        <FrameType>Default</FrameType>
        <Description>Use the Site Users Web Part to see a list of the site users and their online status.</Description>
        <IsIncluded>true</IsIncluded>
        <ZoneID>Right</ZoneID>
        <PartOrder>2</PartOrder>
        <FrameState>Normal</FrameState>
        <Height />
        <Width />
        <AllowRemove>true</AllowRemove>
        <AllowZoneChange>true</AllowZoneChange>
        <AllowMinimize>true</AllowMinimize>
        <AllowConnect>true</AllowConnect>
        <AllowEdit>true</AllowEdit>
        <AllowHide>true</AllowHide>
        <IsVisible>true</IsVisible>
        <DetailLink />
        <HelpLink />
        <HelpMode>Modeless</HelpMode>
        <Dir>Default</Dir>
        <PartImageSmall />
        <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
        <PartImageLarge>/_layouts/images/msmeml.gif</PartImageLarge>
        <IsIncludedFilter />
        <Assembly>Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
        <TypeName>Microsoft.SharePoint.WebPartPages.MembersWebPart</TypeName>
      </WebPart>]]>
      -->
    <AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1" FileName="default.aspx">
    </AllUsersWebPart>
    <AllUsersWebPart WebPartZoneID="Right" WebPartOrder="2" FileName="default.aspx">
    </AllUsersWebPart>

    <IrmSettings ListInstance="Documents" IrmEnabled="true" IrmTitle="TestTitle" IrmDescription="Test description" IrmPrint="true" IrmVBA="false" IrmOffline="false" IrmOfflineDays="10" IrmReject="true" IrmExpire="true" IrmExpireDate=""/>

    <!-- Create a site collection information management policy. The policy manifest schema is standard SharePoint 2007 -->
    <SiteCollectionInformationManagementPolicy Id="A9FA7EC1-865E-463a-9DA0-C8C59129277A">
      <PolicyManifest>
      <!-- xmlns:p="office.server.policy" local="false" id="A9FA7EC1-865E-463a-9DA0-C8C59129277A" -->
        <Policy local="false" id="A9FA7EC1-865E-463a-9DA0-C8C59129277A"  >
          <Name>Archive all documents 10 days after creation</Name>
          <Description>Automatic archiving of documents 10 days after creation.</Description>
          <Statement>Ensures that all documents are archived 10 days after creation.</Statement>
          <PolicyItems>
            <PolicyItem featureId="Microsoft.Office.RecordsManagement.PolicyFeatures.Expiration">
              <Name>Expiration</Name>
              <Description>Automatic scheduling of content for processing, and expiry of content that has reached its due date.</Description>
              <CustomData>
                <data>
                  <formula id="Microsoft.Office.RecordsManagement.PolicyFeatures.Expiration.Formula.BuiltIn">
                    <number>10</number>
                    <property>Expiration</property>
                    <period>days</period>
                  </formula>
                  <action type="action" id="Microsoft.Office.RecordsManagement.PolicyFeatures.Expiration.Action.Record" />
                </data>
              </CustomData>
            </PolicyItem>
          </PolicyItems>
        </Policy>
      </PolicyManifest>
    </SiteCollectionInformationManagementPolicy>

    <!-- Associate the site collection information management policy with the Document content type -->
    <SiteCollectionInformationManagementPolicyContentTypeAssociation ContentTypeId="0x0101" PolicyId="A9FA7EC1-865E-463a-9DA0-C8C59129277A" />

    <!-- Alternatively, create the policy specifically for the Document content type (will have the same effect as above, but is not reusable) -->
    <ContentTypeInformationManagementPolicy
      Name="Archive all documents 10 days after creation"
      ContentTypeId="0x0101"
      Description="Automatic archiving of documents 10 days after creation."
      Statement="Ensures that all documents are archived 10 days after creation.">
      <PolicyItems>
        <PolicyItem FeatureId="Microsoft.Office.RecordsManagement.PolicyFeatures.Expiration">
          <CustomData>
            <data>
              <formula id="Microsoft.Office.RecordsManagement.PolicyFeatures.Expiration.Formula.BuiltIn">
                <number>10</number>
                <property>Expiration</property>
                <period>days</period>
              </formula>
              <action type="action" id="Microsoft.Office.RecordsManagement.PolicyFeatures.Expiration.Action.Record" />
            </data>
          </CustomData>
        </PolicyItem>
      </PolicyItems>
    </ContentTypeInformationManagementPolicy>


    <DeleteListInstance Title="Documents" />
    <DeleteListInstance Title="Announcements" />
    <RoleDefinitionToDelete Name="Contribute" />
    <RoleDefinitionToDelete Name="Contribute2" />

    <RoleDefinition Name="RoleDefinitionName" Description="Description of the permission level" >
      <!-- Permission element names are identical to SPBasePermissions -->
      <!-- True ==> level will be added to the permission matrix -->
      <!-- False ==> level will NOT be added to the permission matrix -->
      <Permission Name="AddAndCustomizePages">False</Permission>
      <Permission Name="AddDelPrivateWebParts">False</Permission>
      <Permission Name="AddListItems">True</Permission>
      <Permission Name="ApplyStyleSheets">True</Permission>
      <Permission Name="ApplyThemeAndBorder">True</Permission>
      <Permission Name="ApproveItems">True</Permission>
      <Permission Name="BrowseDirectories">True</Permission>
      <Permission Name="BrowseUserInfo">True</Permission>
      <Permission Name="CancelCheckout">True</Permission>
      <Permission Name="CreateAlerts">True</Permission>
      <Permission Name="CreateGroups">True</Permission>
      <Permission Name="CreateSSCSite">True</Permission>
      <Permission Name="DeleteListItems">True</Permission>
      <Permission Name="DeleteVersions">True</Permission>
      <Permission Name="EditListItems">True</Permission>
      <Permission Name="EditMyUserInfo">True</Permission>
      <Permission Name="EmptyMask">True</Permission>
      <Permission Name="EnumeratePermissions">True</Permission>
      <Permission Name="FullMask">False</Permission>
      <!-- *** Note! ***-->
      <Permission Name="ManageAlerts">True</Permission>
      <Permission Name="ManageLists">True</Permission>
      <Permission Name="ManagePermissions">True</Permission>
      <Permission Name="ManagePersonalViews">True</Permission>
      <Permission Name="ManageSubwebs">True</Permission>
      <Permission Name="ManageWeb">True</Permission>
      <Permission Name="Open">True</Permission>
      <Permission Name="OpenItems">True</Permission>
      <Permission Name="UpdatePersonalWebParts">True</Permission>
      <Permission Name="UseClientIntegration">True</Permission>
      <Permission Name="UseRemoteAPIs">True</Permission>
      <Permission Name="ViewFormPages">True</Permission>
      <Permission Name="ViewListItems">True</Permission>
      <Permission Name="ViewPages">True</Permission>
      <Permission Name="ViewUsageData">True</Permission>
      <Permission Name="ViewVersions">True</Permission>
    </RoleDefinition>


  </SiteConfiguration>

  <SiteConfiguration Name="SITEDEFINITIONEXAMPLE#1">
    <RegionalSetting  Name="LocaleId" Value="1044" />
    <RegionalSetting  Name="TimeZoneId" Value="4" />
    <RegionalSetting  Name="CalendarType" Value="1" />
    <RegionalSetting  Name="ShowWeeks" Value="true" />
    <RegionalSetting  Name="Time24" Value="true" />
    <RegionalSetting  Name="Collation" Value="9" />
    <RegionalSetting  Name="FirstDayOfWeek" Value="1" />
    <RegionalSetting  Name="FirstWeekOfYear" Value="2" />
    <RegionalSetting  Name="WorkDays" Value="62" />
    <RegionalSetting  Name="WorkDayStartHour" Value="480" />
    <RegionalSetting  Name="WorkDayEndHour" Value="1020" />
    <ApplyTheme Id="Simple"/>
    <FileToProvision FileName="default.aspx" NavBarHome="True" />


    <!-- **************** Site Collection Features ************* -->
    <!-- BasicWebParts Feature -->
    <SiteCollectionFeature Guid="00BFEA71-1C5E-4A24-B310-BA51C3EB7A57" />
    <!-- Three-state Workflow Feature -->
    <SiteCollectionFeature Guid="FDE5D850-671E-4143-950A-87B473922DC7"/>


    <!-- **************** Web Features ************* -->
    <!-- TeamCollab Feature -->
    <WebFeature Guid="00BFEA71-4EA5-48D4-A4AD-7EA5C011ABE5" />
    <!-- MobilityRedirect -->
    <WebFeature Guid="F41CC668-37E5-4743-B4A8-74D1DB3FD8A4" />
    <!-- WikiPageHomePage Feature -->
    <!-- WebFeature Guid="00BFEA71-D8FE-4FEC-8DAD-01C19A6E4053"/ -->


    <TopNavigationLink Title="Home" Link="Default.aspx" IsExternal="false" />

    <ListInstance Title="Documents" Type="Document Library" Description="Library for team documents." EnableAttachments="false"  />
    <ListInstance Title="Announcements" Type="Announcements" Description="Team announcements."  />
    <ListInstance Title="Calendar" Type="Calendar" Description="Team calendar."  />
    <ListInstance Title="Discussions" Type="Discussion Board" Description="Team discussions."  />
    <ListInstance Title="Links" Type="Links" Description="Team links."  />
    <ListInstance Title="Tasks" Type="Tasks" Description="Team tasks."  />

    <ListViewWebPart
      Title="Team announcements"
      ListName="Announcements"
      ViewName=""
      ZoneID="Body"
      ZoneIndex="1"
      ToolbarType="Summary Toolbar"
      AllowMinimize="false"
      AllowClose="false"
      AllowHide="false"
      AllowZoneChange="false"
      AllowConnect="false"
      AllowEdit="false"
        />

    <ListViewWebPart
      Title="Team events"
      ListName="Calendar"
      ViewName="Current Events"
      ZoneID="Body"
      ZoneIndex="2"
      ToolbarType="FullToolbar"
      AllowMinimize="false"
      AllowClose="false"
      AllowHide="false"
      AllowZoneChange="false"
      AllowConnect="false"
      AllowEdit="true"
        />
    <ListViewWebPart
      Title="Team documents"
      ListName="Documents"
      ViewName="All Documents"
      ZoneID="Body"
      ZoneIndex="3"
      ToolbarType="NoToolbar"
      AllowMinimize="false"
      AllowClose="false"
      AllowHide="false"
      AllowZoneChange="false"
      AllowConnect="false"
      AllowEdit="true"
        />
    <ListViewWebPart
      Title="Team links"
      ListName="Links"
      ViewName=""
      ZoneID="Body"
      ZoneIndex="4"
      ToolbarType="Summary Toolbar"
      AllowMinimize="false"
      AllowClose="false"
      AllowHide="false"
      AllowZoneChange="false"
      AllowConnect="false"
      AllowEdit="false"
        />



  </SiteConfiguration>

</SiteConfigurations>


